package com.jy.adscm.dealer.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-01-16
 */
public class Dealer  {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 经销商名字
     */
    private String name;
    /**
     * 经销商电话
     */
    private String phone;
    /**
     * 经销商email
     */
    private String email;
    /**
     * 省
     */
    private String province;
    /**
     * 市
     */
    private String city;
    /**
     * 区
     */
    private String zone;
    /**
     * 地址
     */
    private String address;
    /**
     * 网址
     */
    private String web;
    /**
     * 经销商管理人
     */
    private String jyManager;

    @TableField(exist = false)
    private String jyManagerName;
    /**
     * 经销商简介
     */
    private String introduction;
    /**
     * 经销商备注
     */
    private String remark;
    /**
     * 经营范围
     */
    private String businessScope;
    /**
     * 法人
     */
    private String legalPerson;
    /**
     * 注册资本
     */
    private String registerCapital;
    /**
     * 注册时间
     */
    private Date registerDate;
    /**
     * 信用编码
     */
    private String creditCode;
    /**
     * 注册机关
     */
    private String registerOrgan;
    /**
     * 注册省
     */
    private String registerProvince;
    /**
     * 注册市
     */
    private String registerCity;
    /**
     * 注册区
     */
    private String registerZone;
    /**
     * 注册地址
     */
    private String registerAddress;
    /**
     * 经度
     */
    private Double   longitude;
    /**
     * 纬度
     */
    private Double   latitude;
    /**
     * 是否是厂家
     */
    private  Integer isManufacturer;
    private  Integer dealerState;
    private String approver;
    @TableField(exist = false)
    private String approverName;
    private Date     approveTime;
    private String approveResult;
    private String     approveDesc;

    public Integer getDealerState() {
        return dealerState;
    }

    public void setDealerState(Integer dealerState) {
        this.dealerState = dealerState;
    }

    public String getApprover() {
        return approver;
    }

    public void setApprover(String approver) {
        this.approver = approver;
    }

    public String getApproverName() {
        return approverName;
    }

    public void setApproverName(String approverName) {
        this.approverName = approverName;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getApproveTime() {
        return approveTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setApproveTime(Date approveTime) {
        this.approveTime = approveTime;
    }

    public String getApproveResult() {
        return approveResult;
    }

    public void setApproveResult(String approveResult) {
        this.approveResult = approveResult;
    }

    public String getApproveDesc() {
        return approveDesc;
    }

    public void setApproveDesc(String approveDesc) {
        this.approveDesc = approveDesc;
    }

    public Integer getIsManufacturer() {
        return isManufacturer;
    }

    public void setIsManufacturer(Integer isManufacturer) {
        this.isManufacturer = isManufacturer;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public String getJyManagerName() {
        return jyManagerName;
    }

    public void setJyManagerName(String jyManagerName) {
        this.jyManagerName = jyManagerName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getZone() {
        return zone;
    }

    public void setZone(String zone) {
        this.zone = zone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getWeb() {
        return web;
    }

    public void setWeb(String web) {
        this.web = web;
    }

    public String getJyManager() {
        return jyManager;
    }

    public void setJyManager(String jyManager) {
        this.jyManager = jyManager;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getBusinessScope() {
        return businessScope;
    }

    public void setBusinessScope(String businessScope) {
        this.businessScope = businessScope;
    }

    public String getLegalPerson() {
        return legalPerson;
    }

    public void setLegalPerson(String legalPerson) {
        this.legalPerson = legalPerson;
    }

    public String getRegisterCapital() {
        return registerCapital;
    }

    public void setRegisterCapital(String registerCapital) {
        this.registerCapital = registerCapital;
    }
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    public Date getRegisterDate() {
        return registerDate;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd")
    public void setRegisterDate(Date registerDate) {
        this.registerDate = registerDate;
    }

    public String getCreditCode() {
        return creditCode;
    }

    public void setCreditCode(String creditCode) {
        this.creditCode = creditCode;
    }

    public String getRegisterOrgan() {
        return registerOrgan;
    }

    public void setRegisterOrgan(String registerOrgan) {
        this.registerOrgan = registerOrgan;
    }

    public String getRegisterProvince() {
        return registerProvince;
    }

    public void setRegisterProvince(String registerProvince) {
        this.registerProvince = registerProvince;
    }

    public String getRegisterCity() {
        return registerCity;
    }

    public void setRegisterCity(String registerCity) {
        this.registerCity = registerCity;
    }

    public String getRegisterZone() {
        return registerZone;
    }

    public void setRegisterZone(String registerZone) {
        this.registerZone = registerZone;
    }

    public String getRegisterAddress() {
        return registerAddress;
    }

    public void setRegisterAddress(String registerAddress) {
        this.registerAddress = registerAddress;
    }

    @Override
    public String toString() {
        return "Dealer{" +
        "id=" + id +
        ", name=" + name +
        ", phone=" + phone +
        ", email=" + email +
        ", province=" + province +
        ", city=" + city +
        ", zone=" + zone +
        ", address=" + address +
        ", web=" + web +
        ", jyManager=" + jyManager +
        ", introduction=" + introduction +
        ", remark=" + remark +
        ", businessScope=" + businessScope +
        ", legalPerson=" + legalPerson +
        ", registerCapital=" + registerCapital +
        ", registerDate=" + registerDate +
        ", creditCode=" + creditCode +
        ", registerOrgan=" + registerOrgan +
        ", registerProvince=" + registerProvince +
        ", registerCity=" + registerCity +
        ", registerZone=" + registerZone +
        ", registerAddress=" + registerAddress +
        "}";
    }
}
